import request from '@/utils/request'

export function allCalculator() {
  return request({
    url: '/calculator/all',
    method: 'get',
  })
}

export function searchCalculator(params) {
  return request({
    url: '/calculator/search_by_page',
    method: 'get',
    params
  })
}

export function saveCalculator(params) {
  return request({
    url: '/calculator/save',
    method: 'post',
    data: params
  })
}

export function deleteCalculator(id) {
  return request({
    url: '/calculator/delete',
    method: 'post',
    params: {"id": id}
  })
}

